﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace OpenAPI.Model.OAuth
{
    [Serializable]
    public class MethodInConsumerLevelInfoPK
    {
        public virtual string CONSUMER_LEVEL { get; set; }
        public virtual string METHOD_NAME { get; set; }
             
        /// <summary>
        /// 判断两个对象是否相同，这个方法需要重写
        /// </summary>
        /// <param name="obj">进行比较的对象</param>
        /// <returns>真true或假false</returns>
        public override bool Equals(object obj)
        {
            if (obj is MethodInConsumerLevelInfoPK)
            {
                MethodInConsumerLevelInfoPK o = obj as MethodInConsumerLevelInfoPK;
                if (this.CONSUMER_LEVEL == o.CONSUMER_LEVEL
                     && this.METHOD_NAME == o.METHOD_NAME)
                {
                    return true;
                }
                else
                {
                    return false;
                }
            }
            return false;
        }

        public override int GetHashCode()
        {
            return base.GetHashCode();
        }


    }
}
